load("//bazel:macros.bzl", "exports_files_legacy", "select_multi")

licenses(["notice"])

exports_files_legacy()

filegroup(
    name = "public_hdrs",
    srcs = [
        "GpuTypes.h",
        "GrBackendDrawableInfo.h",
        "GrBackendSemaphore.h",
        "GrBackendSurface.h",
        "GrBackendSurfaceMutableState.h",
        "GrConfig.h",
        "GrContextOptions.h",
        "GrContextThreadSafeProxy.h",
        "GrDirectContext.h",
        "GrDriverBugWorkarounds.h",
        "GrDriverBugWorkaroundsAutogen.h",
        "GrRecordingContext.h",
        "GrSurfaceInfo.h",
        "GrTypes.h",
        "GrYUVABackendTextures.h",
        "ShaderErrorHandler.h",
        "//include/gpu/mock:public_hdrs",
        # TODO(egdaniel, kjlubick) GrGLTypes.h is used unconditionally by GrBackendSemaphore.h
        "//include/gpu/gl:public_hdrs",
    ] + select_multi(
        {
            "//src/gpu:dawn_backend": ["//include/gpu/dawn:public_hdrs"],
            "//src/gpu:vulkan_backend": ["//include/gpu/vk:public_hdrs"],
            # TODO(kjlubick) mtl and d3d backend
        },
    ),
    visibility = ["//include:__pkg__"],
)
